package com.ibeetl.cms.entity;

import com.ibeetl.admin.core.annotation.Dict;
import com.ibeetl.admin.core.entity.BaseEntity;
import com.ibeetl.admin.core.util.ValidateConfig;
import org.beetl.sql.core.annotatoin.AutoID;
import org.beetl.sql.core.annotatoin.SeqID;

import javax.validation.constraints.NotNull;
import java.util.Date;


/* 
* 
* gen by Spring Boot2 Admin 2020-03-06
*/
public class XxdOrder extends BaseEntity{

    //订单编号
    @NotNull(message = "ID不能为空", groups =ValidateConfig.UPDATE.class)
    @SeqID(name = ORACLE_CORE_SEQ_NAME)
    @AutoID	

    private String orderId ;
	
    //商品项个数

    private Integer itemCount ;
	
    //用户id

    private Integer userId ;
	
    //店铺id， 暂未使用

    private String shopId ;
	
    //下单时间

    private Date createTime ;
	
    //支付方式， 1. 支付宝 2.微信
    @Dict(type="pay_method")
    private Integer payType ;
	
    //支付时间

    private Date payTime ;
	
    //配送方式， 暂时未使用

    private Integer distributionMode ;
	
    //期望配送日期

    private Date distributionDate ;
	
    //商品总额

    private Long itemsTotal ;
	
    //运费

    private Long freight ;
	
    //付款(也可是需支付金额 2020/02/19)

    private Long payment ;
	
    //订单状态， 0:未付款 1.已付款 2.已完成 3.已取消订单
    @Dict(type="pay_type")
    private String status ;
	
    public XxdOrder(){
    }

    /**订单编号
    *@return 
    */
    public String getOrderId(){
        return  orderId;
    }
    /**订单编号
    *@param  orderId
    */
    public void setOrderId(String orderId){
        this.orderId = orderId;
    }

    /**商品项个数
    *@return 
    */
    public Integer getItemCount(){
        return  itemCount;
    }
    /**商品项个数
    *@param  itemCount
    */
    public void setItemCount(Integer itemCount){
        this.itemCount = itemCount;
    }

    /**用户id
    *@return 
    */
    public Integer getUserId(){
        return  userId;
    }
    /**用户id
    *@param  userId
    */
    public void setUserId(Integer userId){
        this.userId = userId;
    }

    /**店铺id， 暂未使用
    *@return 
    */
    public String getShopId(){
        return  shopId;
    }
    /**店铺id， 暂未使用
    *@param  shopId
    */
    public void setShopId(String shopId){
        this.shopId = shopId;
    }

    /**下单时间
    *@return 
    */
    public Date getCreateTime(){
        return  createTime;
    }
    /**下单时间
    *@param  createTime
    */
    public void setCreateTime(Date createTime){
        this.createTime = createTime;
    }

    /**支付方式， 1. 支付宝 2.微信
    *@return 
    */
    public Integer getPayType(){
        return  payType;
    }
    /**支付方式， 1. 支付宝 2.微信
    *@param  payType
    */
    public void setPayType(Integer payType){
        this.payType = payType;
    }

    /**支付时间
    *@return 
    */
    public Date getPayTime(){
        return  payTime;
    }
    /**支付时间
    *@param  payTime
    */
    public void setPayTime(Date payTime){
        this.payTime = payTime;
    }

    /**配送方式， 暂时未使用
    *@return 
    */
    public Integer getDistributionMode(){
        return  distributionMode;
    }
    /**配送方式， 暂时未使用
    *@param  distributionMode
    */
    public void setDistributionMode(Integer distributionMode){
        this.distributionMode = distributionMode;
    }

    /**期望配送日期
    *@return 
    */
    public Date getDistributionDate(){
        return  distributionDate;
    }
    /**期望配送日期
    *@param  distributionDate
    */
    public void setDistributionDate(Date distributionDate){
        this.distributionDate = distributionDate;
    }

    /**商品总额
    *@return 
    */
    public Long getItemsTotal(){
        return  itemsTotal;
    }
    /**商品总额
    *@param  itemsTotal
    */
    public void setItemsTotal(Long itemsTotal){
        this.itemsTotal = itemsTotal;
    }

    /**运费
    *@return 
    */
    public Long getFreight(){
        return  freight;
    }
    /**运费
    *@param  freight
    */
    public void setFreight(Long freight){
        this.freight = freight;
    }

    /**付款(也可是需支付金额 2020/02/19)
    *@return 
    */
    public Long getPayment(){
        return  payment;
    }
    /**付款(也可是需支付金额 2020/02/19)
    *@param  payment
    */
    public void setPayment(Long payment){
        this.payment = payment;
    }

    /**订单状态， 0:未付款 1.已付款 2.已完成 3.已取消订单
    *@return 
    */
    public String getStatus(){
        return  status;
    }
    /**订单状态， 0:未付款 1.已付款 2.已完成 3.已取消订单
    *@param  status
    */
    public void setStatus(String status){
        this.status = status;
    }

    @Override
    public String toString() {
        return "XxdOrder{" +
                "orderId='" + orderId + '\'' +
                ", itemCount=" + itemCount +
                ", userId=" + userId +
                ", shopId='" + shopId + '\'' +
                ", createTime=" + createTime +
                ", payType=" + payType +
                ", payTime=" + payTime +
                ", distributionMode=" + distributionMode +
                ", distributionDate=" + distributionDate +
                ", itemsTotal=" + itemsTotal +
                ", freight=" + freight +
                ", payment=" + payment +
                ", status='" + status + '\'' +
                '}';
    }
}
